#pragma once
#include <nice2d/entity.h>

class Line: public Entity
{
public:
    Line();
    ~Line();
public:
    void setPointOption(bool show = true, const sf::Color &color = sf::Color(240, 0, 120),
                        float radius = 3.0f);
    void add(const sf::Vector2f &point,
             float thickness = 2.0f,
             const sf::Color &color = sf::Color::Yellow);
    void clear();
    size_t getSize() const;
    
    void onDrawNode(sf::RenderTarget &target, sf::RenderStates states) const override;
private:
    std::unique_ptr<class LineData> data;
};


